import http from '@/utils/http'

export const getHomeBanner = (id) => http({ url: '/home/banner', params: { id } })

/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const getHomeNew = () => http({ url: '/home/new' })

/**
 * @description: 获取人气推荐
 * @param {*}
 * @return {*}
 */
export const getHomeHot = () => http({ url: 'home/hot' })

/**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const getHomeGoods = () => http({ url: '/home/goods' })
